package com.geeguo.ebuilder.operation.business.system.webmodule.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class WebModuleCreateDTO {

    @Schema(title = "父级Id")
    private String parentId;
    @NotBlank(message = "名称不能为空")
    @Schema(title = "名称")
    private String name;
    @NotBlank(message = "标题不能为空")
    @Schema(title = "标题")
    private String title;
    @NotNull(message = "类型不能为空")
    @Schema(title = "类型")
    private Integer type;
    @Schema(title = "图标")
    private String icon;
    @Schema(title = "访问路径")
    private String path;
    @Schema(title = "组件")
    private String component;
    @Schema(title = "授权编码")
    private String permissionCode;
    @Schema(title = "是否隐藏（1：是、2：否）")
    private Integer hidden;
    @Schema(title = "顺序")
    private Integer sequence;
}